package botapi

import (
	"dingbot/config"
	"net/http"
	"net/url"
)

func GetApiPath() string {
	return "http://127.0.0.1:" + config.GetConfig().Port.Http
}

func SendGroupMsg(group_id string, message string) {
	http.Get(GetApiPath() + "/send_group_msg?group_id=" + group_id + "&message=" + url.QueryEscape(message))
}
